import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set from '@dfeidao/atom-web/local/set';

export default async function a005(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo
	//console.log(e.currentTarget as HTMLDivElement);
	//点击事件获取到的值（一整个大div,点击的那一条数据）
	const value = e.currentTarget as HTMLDivElement;
	//取出点击的那一条数据（string字符串）
	const div = value.getAttribute('data-v');
	//将字符串转化为json对象
	const dv = JSON.parse(div);
	console.log(dv);
	//取出点击的那一条数据的编号
	const no = dv.company_no;
	//console.log(no);
	set(fd, 'no', no);

}
